<?php
namespace Components\Account\User\Wallet\Log;

class Service {
	public function pager($parameters = [], $limit = 10, $page = 1) {
		return ['code' => 0, 'pager'=>(new \Phalcon\Paginator\Adapter\QueryBuilder([
			'builder' => (new \Phalcon\Mvc\Model\Query\Builder($parameters)) -> from(__NAMESPACE__ . '\\Model'),
			'limit' => $limit,
			'page' => $page
		])) -> getPaginate()];
	}
}
